﻿<UserControl x:Class="Shatranj.PlayerInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="170">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="15.96*" />
            <RowDefinition Height="37.04*" />
            <RowDefinition Height="18*" />
            <RowDefinition Height="49*" />
            <RowDefinition Height="18*" />
            <RowDefinition Height="30*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <TextBlock Background="LightSteelBlue" Text="Player Info" FontWeight="Bold" TextAlignment="Left" Grid.Row="0"
                   Grid.ColumnSpan="2" Grid.RowSpan="2" VerticalAlignment="Top" />
        <Image Source="./pin.bmp" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" />
        <TextBlock Text="k" FontFamily="Chess Cases" FontSize="32" HorizontalAlignment="Center"
                   VerticalAlignment="Center" FontWeight="Bold" Grid.Row="1" Grid.Column="0" />
        <TextBlock Text="PLAYER 1" FontFamily="Century Gothic" FontSize="24" HorizontalAlignment="Center"
                   VerticalAlignment="Center" FontWeight="Bold" Grid.Row="1" Grid.Column="1" />
        <Image Source="Clock.jpg" Height="50" Grid.Row="3" Grid.Column="0" />
        <Grid Grid.Row="3" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="12" />
                <RowDefinition Height="37*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Rectangle Fill="Green" Height="12" Width="12" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right"
                       VerticalAlignment="Top">
                <Rectangle.RenderTransform>
                    <RotateTransform x:Name="SpinInPlace" Angle="0" />
                </Rectangle.RenderTransform>
                <Rectangle.Triggers>
                    <EventTrigger RoutedEvent="Rectangle.Loaded">
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation
                                    Storyboard.TargetName="SpinInPlace"
                                    Storyboard.TargetProperty="(RotateTransform.Angle)"
                                    From="0.0"
                                    To="360"
                                    Duration="0:0:1"
                                    RepeatBehavior="Forever" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Rectangle.Triggers>


            </Rectangle>
            <TextBlock Text="00:00" FontFamily="CenturyGothic" FontSize="28" Foreground="Indigo" FontWeight="Bold"
                       HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0" Grid.RowSpan="2"
                       Grid.Column="0" />
        </Grid>
        <TextBlock Text="l" FontFamily="Chess Cases" FontSize="32" HorizontalAlignment="Center"
                   VerticalAlignment="Center" FontWeight="Bold" Grid.Row="5" Grid.Column="0" />
        <TextBlock Text="PLAYER 2" FontFamily="Century Gothic" FontSize="24" HorizontalAlignment="Center"
                   VerticalAlignment="Center" FontWeight="Bold" Grid.Row="5" Grid.Column="1" />

    </Grid>
</UserControl>